#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QtCore>
#include <QtGui>
#include <QGraphicsScene>
#include "Ball.h"

namespace Ui {
    class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();
    void keyPressEvent(QKeyEvent *evt);
    void keyReleaseEvent(QKeyEvent *evt);

private:
    Ui::Dialog *m_pUI;
    QGraphicsScene *m_pScene;
    QTimer *m_pTimer;
    QGraphicsLineItem* m_pControl;
    Ball *m_pBoxItem;
    double m_dControllerSpeed;
};

#endif // DIALOG_H
